package com.itheima.job;

import com.alibaba.dubbo.config.annotation.Reference;
import com.itheima.service.OrderSettingService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author leboy
 * @description
 */
@Slf4j
public class ClearHistoryJob {

	@Reference
	private OrderSettingService orderSettingService;
	/*定时清理预约历史数据*/

	public void clearHistoricalData(){

		log.debug("***********:进入job"+orderSettingService);

//调用service接口,执行方法
		orderSettingService.clearHistoricalData();

	}

}
